      SUBROUTINE SETUP
      RETURN
      END
C   HS100
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),FX
      ICF=ICF+1
      FX=(X(1)-10.D0)**2+5.D0*(X(2)-12.D0)**2+X(3)**4+3.D0*(X(4)-11.D0)
     1    **2+10.D0*X(5)**6+X(7)**4-4.D0*X(6)*X(7)-10.D0*X(6)-8.D0*X(7)
     2       + 7.D0*X(6)**2
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX)
      ICGF=ICGF+1
      GRADF(1)=X(1)+X(1)-20.D0
      GRADF(2)=10.D0*X(2)-12.D1
      GRADF(3)=4.D0*X(3)**3
      GRADF(4)=6.D0*(X(4)-11.D0)
      GRADF(5)=60.D0*X(5)**5
      GRADF(6)=-10.D0-4.D0*X(7)+14.D0*X(6)
      GRADF(7)=  4.D0*X(7)**3-4.D0*X(6)-8.D0
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),HXI
      INTEGER I
      CRES(I)=CRES(I)+1
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADHI(NX)
      INTEGER I
      CGRES(I)=CGRES(I)+1
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GXI
      INTEGER I
      IF ( GUNIT(1,I+NH) .EQ. -1 )CRES(I+NH)=CRES(I+NH)+1      
      GOTO (100,200,300,400),I
  100 CONTINUE
      GXI=127.D0-2.D0*X(1)**2-3.D0*X(2)**4-X(3)-4.D0*X(4)**2-5.D0*X(5)
      RETURN
  200 CONTINUE
      GXI=282.D0-7.D0*X(1)-3.D0*X(2)-10.D0*X(3)**2-X(4)+X(5)
      RETURN
  300 CONTINUE
      GXI=196.D0-23.D0*X(1)-X(2)**2-6.D0*X(6)**2+8.D0*X(7)
      RETURN
  400 CONTINUE
      GXI=-4.D0*X(1)**2-X(2)**2+3.D0*X(2)*X(1)-2.D0*X(3)**2-
     1     5.D0*X(6)+11.D0*X(7)
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      INTEGER I,J
      IF ( GUNIT(1,I+NH) .EQ. 1 )RETURN
      CGRES(I+NH)=CGRES(I+NH)+1
      DO     100      J=1,NX
      GRADGI(J)=0.D0
  100 CONTINUE
      GOTO (200,300,400,500),I
  200 CONTINUE
      GRADGI(1)=-4.D0*X(1)
      GRADGI(2)=-12.D0*X(2)**3
      GRADGI(3)=-1.D0
      GRADGI(4)=-8.D0*X(4)
      GRADGI(5)=-5.D0
      RETURN
  300 CONTINUE
      GRADGI(1)=-7.D0
      GRADGI(2)=-3.D0
      GRADGI(3)=-20.D0*X(3)
      GRADGI(4)=-1.D0
      GRADGI(5)= 1.D0
      RETURN
  400 CONTINUE
      GRADGI(1)= -23.D0
      GRADGI(2)=-2.D0*X(2)
      GRADGI(6)=-12.D0*X(6)
      GRADGI(7)=8.D0
      RETURN
  500 CONTINUE
      GRADGI( 1)=-8.D0*X(1)+3.D0*X(2)
      GRADGI(2)=-2.D0*X(2)+3D0*X(1)
      GRADGI( 3)=-4.D0*X(3)
      GRADGI( 6)= -5.D0
      GRADGI( 7)= 11.D0
      RETURN
      END
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS100'/
      DATA (X(I),I=1,7)/1.D0,2.D0,0.D0,4.D0,0.D0,2*1.D0/
      DATA N/ 7/ , NH/0/ , NG/ 4/
      DATA DEL0/0.04D0/ ,TAU0/1.10/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,4)
     F     /-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0/
      END
